package com.study.log;

import lombok.extern.slf4j.Slf4j;


/**
 * @version V1.0
 * @title: PersonServiceImpl
 * @description: ${DESCRIPTION}
 * @author: wanghuilong
 * @date: 2019-10-19 16:05
 * @copyright: http://fingo.com.my/
 */
@Slf4j
public class PersonServiceImpl {
    private PersonService personService;

    public void add(Person[] p, String... name) {
        log.info("addLogStart add InputParam: p : {} name : {} ", p, name);
        System.out.println("add p:" + p[0].name);
    }

    public void update(Person[] p, String... name) {
        log.info("addLogStart update InputParam: p : {} name : {} ", p, name);
        System.out.println("update p:" + p[0].name);
    }

    public void add2(Person[] p, String... name) {
        log.info("addLogStart add2 InputParam: p : {} name : {} ", p, name);
        System.out.println("add p:" + p[0].name);
    }

    public void update2(Person[] p, String... name) {
        log.info("addLogStart update2 InputParam: p : {} name : {} ", p, name);
        System.out.println("update p:" + p[0].name);
    }

    class PersonService {
        private PersonService personService;

        public void add(Person[] p, String... name) {
            log.info("addLogStart add InputParam: p : {} name : {} ", p, name);
            System.out.println("add p:" + p[0].name);
        }

        public void update(Person[] p, String... name) {
            log.info("addLogStart update InputParam: p : {} name : {} ", p, name);
            System.out.println("update p:" + p[0].name);
        }

        class PersonService2 {
            public void add(Person[] p, String... name) {
                log.info("addLogStart add InputParam: p : {} name : {} ", p,
                        name);
                System.out.println("add p:" + p[0].name);
            }

            public void update(Person[] p, String... name) {
                log.info("addLogStart update InputParam: p : {} name : {} ", p,
                        name);
                System.out.println("update p:" + p[0].name);
            }
        }
    }

    class PersonService1 {
        public void add(Person[] p, String... name) {
            log.info("addLogStart add InputParam: p : {} name : {} ", p, name);
            System.out.println("add p:" + p[0].name);
        }

        public void update(Person[] p, String... name) {
            log.info("addLogStart update InputParam: p : {} name : {} ", p, name);
            System.out.println("update p:" + p[0].name);
        }
    }
}
